﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model GSLMS.Entity.TB_ADU_CONARR
@{
    Layout = null;
    var UserEffList = ViewData["UserEffList"] as List<GSLMS.Entity.TB_SYS_EMP> ?? new List<GSLMS.Entity.TB_SYS_EMP>();
}
<div class="pageContent">
    <form method="post" id="RiskAuditConArr" action="RiskAudit/AuditCon/AuditConArr/Create?OpID=@ViewData["OperateID"]" class="pageForm required-validate"
    onsubmit="return validateCallback(this, dialogAjaxDone)">
    @Html.ValidationSummary(true)
    <div class="pageFormContent">
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.PROID)
      
        <p>
            <label>
                客户名称：</label>
            @Html.ValueFor(model => model.CustName)
        </p>
        <p>
            <label>
                申请编号：</label>
             <a href="DianDang/Apply/ProInfo/Details/@Model.PROID?OpID=@ViewData["OperateID"]" Target="dialog" rel="DirectorCoArrVPro"  title="查看立项申请【@Model.CustName】">
                @Model.ApplyNo
             </a>
        </p>
        <p>
            <label>
                业务类型：</label>
            @((GSLMS.Entity.Enum.ApplyEnum.RegBussType)Model.BussType)
        </p>
        <p>
            <label>
                金额/费率：</label>
            @Model.Amount.ToString("N")
            万元
            &nbsp;&nbsp;
            /
            &nbsp;&nbsp;
            @Model.GENERALRATE.ToString("N")
            %
        </p>
        <p>
            <label>
                申请日期：</label>
           @Model.ApplyDate.Value.ToString("yyyy-MM-dd")
        </p>
        <p>
            <label>
                风控经理：</label>
            @Model.RiskAuditBy
        </p>
        <p>
            <label>
                业务经理：</label>
            @Model.SalesMan
        </p>
    </div>
   
    <div class="pageFormContent" style="height:220px">
        <p>
            <label>
                审议安排时间：</label>
            @Html.TextBoxFor(model => model.ARRDATE, new { @class = "required date", dateFmt = "yyyy-MM-dd HH:mm", format = "yyyy-MM-dd HH:mm", @maxDate = "%y-%M-%d", @readonly = "true", formatDate = "yyyy-MM-dd HH:mm" })
            <a class="inputDateButton" href="javascript:;">选择</a>
            @Html.ValidationMessageFor(model => model.ARRDATE)
        </p>
        <p style="width:90%">
            <label>
                审议成员：</label>
                <span style="float:left;">
              <input name="arrMembersGroup.empID"  type="hidden"  value="@(Model.ARRMEMBERSID)" />  
              <input class="required" name="arrMembersGroup.empName" type="text" style="width:70%" value="@(Model.ARRMEMBERS)" />  
              
            </span>
            <span style="float:left;">
                <a class="btnLook" href="System/Employee/Selector" warn="选择审议成员" maxable="false" max="false" maximize="false" mask="true" lookupGroup="arrMembersGroup">选择审议成员</a> 
            </span>
        </p>
        <p>
            <label>
                审议组长：</label>
           <span style="float:left;">
               <input name="HEADMAN.empID"  type="hidden"  value="@(Model.HEADMANID)" />  
               <input class="required" name="HEADMAN.empName" type="text"  value="@(Model.HEADMAN)" />  
              
            </span>
            <span style="float:left;">
                <a class="btnLook" href="System/Employee/SingleSelector" warn="选择审议组长" maxable="false" max="false" maximize="false" mask="true" lookupGroup="HEADMAN">选择审议组长</a> 
            </span>
        </p>
        <p>
            <label>
                安排人：</label>
            @Html.TextBoxFor(model => model.ARRBY, new { @class = "", @readonly = "true" })
            @Html.HiddenFor(model => model.ARRBYID);
            @Html.ValidationMessageFor(model => model.ARRBY)
        </p>
        <p>
            <label>
                经办时间：</label>
            @Html.TextBoxFor(model => model.CREATEDATE, new { @class = "", @readonly = "true", formatDate = "yyyy-MM-dd HH:mm:ss" })
            @Html.ValidationMessageFor(model => model.CREATEDATE)
        </p>
        <p style="width: 90%;">
            <label>
                备注：</label>
           @Html.TextAreaFor(model => model.REMARK, new { @cols = "70", @rows = "5" })
        </p>
    </div>
    <div class="pageFormContent">
        <p style="width: 90%; ">
            <label>
                首席风控官意见：</label>
           @Html.ValueFor(model => model.RiskDirectorAuditContent)
        </p>
    </div>
    
     
    <input id="hidActiondo" name="hidActiondo" type="hidden" value="@(Model.STATUS)" />
    </form>
</div>

<div class="formBar" style="display:@(Model.STATUS==1?"none":"inline")">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="toSave(0)">
                            保存</button></div>
                </div>
            </li>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="button" onclick="toSave(1)">
                            提交</button></div>
                </div>
            </li>
            </ul>
</div>
<script type="text/javascript">
 
    function toSave(action) {
        $form = $("#RiskAuditConArr");
        $("#hidActiondo", $form).val(action);
        if (action==1) {
            validateCallback($form, dialogAjaxDone, "提交后不允许再修改，您确定要提交此笔贷款的审议安排吗？");

        }
        else {
            validateCallback($form, dialogAjaxDone);
        }
    }
</script>
